<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perlpodstyle - Perl POD style guide - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perlpodstyle">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlpodstyle.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perlpodstyle">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perlpodstyle">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perlpodstyle">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perlpodstyle">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perlpodstyle">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perlpodstyle">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perlpodstyle">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perlpodstyle">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perlpodstyle">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perlpodstyle">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perlpodstyle">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perlpodstyle">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perlpodstyle">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perlpodstyle">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perlpodstyle">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perlpodstyle">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perlpodstyle">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perlpodstyle">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perlpodstyle">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perlpodstyle">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perlpodstyle">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perlpodstyle">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perlpodstyle">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perlpodstyle">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perlpodstyle">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perlpodstyle">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perlpodstyle">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perlpodstyle">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perlpodstyle">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perlpodstyle">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perlpodstyle">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perlpodstyle">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perlpodstyle">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perlpodstyle">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perlpodstyle">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perlpodstyle">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perlpodstyle">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perlpodstyle">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perlpodstyle">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perlpodstyle">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perlpodstyle">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perlpodstyle">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perlpodstyle">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perlpodstyle">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perlpodstyle">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perlpodstyle">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perlpodstyle">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perlpodstyle">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perlpodstyle">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perlpodstyle">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perlpodstyle">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perlpodstyle">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perlpodstyle">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perlpodstyle">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perlpodstyle">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perlpodstyle">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perlpodstyle">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perlpodstyle">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perlpodstyle">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perlpodstyle">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perlpodstyle">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perlpodstyle">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perlpodstyle">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perlpodstyle">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perlpodstyle">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perlpodstyle">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perlpodstyle">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perlpodstyle">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perlpodstyle">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perlpodstyle">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perlpodstyle">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perlpodstyle">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perlpodstyle">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perlpodstyle">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perlpodstyle">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perlpodstyle">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perlpodstyle">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perlpodstyle">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perlpodstyle">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perlpodstyle">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlpodstyle.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perlpodstyle">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perlpodstyle">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perlpodstyle">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perlpodstyle">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perlpodstyle">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perlpodstyle">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perlpodstyle">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perlpodstyle">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perlpodstyle">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perlpodstyle">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perlpodstyle">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perlpodstyle">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perlpodstyle">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perlpodstyle">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perlpodstyle">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perlpodstyle">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perlpodstyle">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perlpodstyle">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perlpodstyle">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perlpodstyle">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perlpodstyle">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perlpodstyle">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perlpodstyle">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perlpodstyle">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perlpodstyle">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perlpodstyle">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perlpodstyle">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perlpodstyle">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perlpodstyle">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perlpodstyle">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perlpodstyle">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perlpodstyle">5.35.1</a>
          <a class="dropdown-item active" href="perlpodstyle.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlpodstyle.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perlpodstyle.html">perlpodstyle</a>
          <div id="more">
            (<a href="perlpodstyle.txt">source</a>,
            <a href="https://metacpan.org/pod/perlpodstyle">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perlpodstyle.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlpodstyle.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlpodstyle.html#AUTHOR1">AUTHOR</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlpodstyle.html#COPYRIGHT-AND-LICENSE1">COPYRIGHT AND LICENSE</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlpodstyle.html#SEE-ALSO1">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perlpodstyle.html#NAME">#</a>NAME</h1>

<p>perlpodstyle - Perl POD style guide</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perlpodstyle.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>These are general guidelines for how to write POD documentation for Perl scripts and modules, based on general guidelines for writing good UNIX man pages. All of these guidelines are, of course, optional, but following them will make your documentation more consistent with other documentation on the system.</p>

<p>The name of the program being documented is conventionally written in bold (using B&lt;&gt;) wherever it occurs, as are all program options. Arguments should be written in italics (I&lt;&gt;). Function names are traditionally written in italics; if you write a function as function(), Pod::Man will take care of this for you. Literal code or commands should be in C&lt;&gt;. References to other man pages should be in the form <code>manpage(section)</code> or <code>L&lt;manpage(section)&gt;</code>, and Pod::Man will automatically format those appropriately. The second form, with L&lt;&gt;, is used to request that a POD formatter make a link to the man page if possible. As an exception, one normally omits the section when referring to module documentation since it&#39;s not clear what section module documentation will be in; use <code>L&lt;Module::Name&gt;</code> for module references instead.</p>

<p>References to other programs or functions are normally in the form of man page references so that cross-referencing tools can provide the user with links and the like. It&#39;s possible to overdo this, though, so be careful not to clutter your documentation with too much markup. References to other programs that are not given as man page references should be enclosed in B&lt;&gt;.</p>

<p>The major headers should be set out using a <code>=head1</code> directive, and are historically written in the rather startling ALL UPPER CASE format; this is not mandatory, but it&#39;s strongly recommended so that sections have consistent naming across different software packages. Minor headers may be included using <code>=head2</code>, and are typically in mixed case.</p>

<p>The standard sections of a manual page are:</p>

<dl>

<dt id="NAME1"><a class="permalink" href="perlpodstyle.html#NAME1">#</a>NAME</dt>
<dd>

<p>Mandatory section; should be a comma-separated list of programs or functions documented by this POD page, such as:</p>

<pre><code class="plaintext">foo, bar - programs to do something</code></pre>

<p>Manual page indexers are often extremely picky about the format of this section, so don&#39;t put anything in it except this line. Every program or function documented by this POD page should be listed, separated by a comma and a space. For a Perl module, just give the module name. A single dash, and only a single dash, should separate the list of programs or functions from the description. Do not use any markup such as C&lt;&gt; or B&lt;&gt; anywhere in this line. Functions should not be qualified with <code>()</code> or the like. The description should ideally fit on a single line, even if a man program replaces the dash with a few tabs.</p>

</dd>
<dt id="SYNOPSIS"><a class="permalink" href="perlpodstyle.html#SYNOPSIS">#</a>SYNOPSIS</dt>
<dd>

<p>A short usage summary for programs and functions. This section is mandatory for section 3 pages. For Perl module documentation, it&#39;s usually convenient to have the contents of this section be a verbatim block showing some (brief) examples of typical ways the module is used.</p>

</dd>
<dt id="DESCRIPTION1"><a class="permalink" href="perlpodstyle.html#DESCRIPTION1">#</a>DESCRIPTION</dt>
<dd>

<p>Extended description and discussion of the program or functions, or the body of the documentation for man pages that document something else. If particularly long, it&#39;s a good idea to break this up into subsections <code>=head2</code> directives like:</p>

<pre><code class="plaintext">=head2 Normal Usage

=head2 Advanced Features

=head2 Writing Configuration Files</code></pre>

<p>or whatever is appropriate for your documentation.</p>

<p>For a module, this is generally where the documentation of the interfaces provided by the module goes, usually in the form of a list with an <code>=item</code> for each interface. Depending on how many interfaces there are, you may want to put that documentation in separate METHODS, FUNCTIONS, CLASS METHODS, or INSTANCE METHODS sections instead and save the DESCRIPTION section for an overview.</p>

</dd>
<dt id="OPTIONS"><a class="permalink" href="perlpodstyle.html#OPTIONS">#</a>OPTIONS</dt>
<dd>

<p>Detailed description of each of the command-line options taken by the program. This should be separate from the description for the use of parsers like <a href="./Pod::Usage.html">Pod::Usage</a>. This is normally presented as a list, with each option as a separate <code>=item</code>. The specific option string should be enclosed in B&lt;&gt;. Any values that the option takes should be enclosed in I&lt;&gt;. For example, the section for the option <b>--section</b>=<i>manext</i> would be introduced with:</p>

<pre><code class="plaintext">=item B&lt;--section&gt;=I&lt;manext&gt;</code></pre>

<p>Synonymous options (like both the short and long forms) are separated by a comma and a space on the same <code>=item</code> line, or optionally listed as their own item with a reference to the canonical name. For example, since <b>--section</b> can also be written as <b>-s</b>, the above would be:</p>

<pre><code class="plaintext">=item B&lt;-s&gt; I&lt;manext&gt;, B&lt;--section&gt;=I&lt;manext&gt;</code></pre>

<p>Writing the short option first is recommended because it&#39;s easier to read. The long option is long enough to draw the eye to it anyway and the short option can otherwise get lost in visual noise.</p>

</dd>
<dt id="RETURN-VALUE"><a class="permalink" href="perlpodstyle.html#RETURN-VALUE">#</a><a id="RETURN"></a>RETURN VALUE</dt>
<dd>

<p>What the program or function returns, if successful. This section can be omitted for programs whose precise exit codes aren&#39;t important, provided they return 0 on success and non-zero on failure as is standard. It should always be present for functions. For modules, it may be useful to summarize return values from the module interface here, or it may be more useful to discuss return values separately in the documentation of each function or method the module provides.</p>

</dd>
<dt id="ERRORS"><a class="permalink" href="perlpodstyle.html#ERRORS">#</a>ERRORS</dt>
<dd>

<p>Exceptions, error return codes, exit statuses, and errno settings. Typically used for function or module documentation; program documentation uses DIAGNOSTICS instead. The general rule of thumb is that errors printed to <code>STDOUT</code> or <code>STDERR</code> and intended for the end user are documented in DIAGNOSTICS while errors passed internal to the calling program and intended for other programmers are documented in ERRORS. When documenting a function that sets errno, a full list of the possible errno values should be given here.</p>

</dd>
<dt id="DIAGNOSTICS"><a class="permalink" href="perlpodstyle.html#DIAGNOSTICS">#</a>DIAGNOSTICS</dt>
<dd>

<p>All possible messages the program can print out and what they mean. You may wish to follow the same documentation style as the Perl documentation; see perldiag(1) for more details (and look at the POD source as well).</p>

<p>If applicable, please include details on what the user should do to correct the error; documenting an error as indicating &quot;the input buffer is too small&quot; without telling the user how to increase the size of the input buffer (or at least telling them that it isn&#39;t possible) aren&#39;t very useful.</p>

</dd>
<dt id="EXAMPLES"><a class="permalink" href="perlpodstyle.html#EXAMPLES">#</a>EXAMPLES</dt>
<dd>

<p>Give some example uses of the program or function. Don&#39;t skimp; users often find this the most useful part of the documentation. The examples are generally given as verbatim paragraphs.</p>

<p>Don&#39;t just present an example without explaining what it does. Adding a short paragraph saying what the example will do can increase the value of the example immensely.</p>

</dd>
<dt id="ENVIRONMENT"><a class="permalink" href="perlpodstyle.html#ENVIRONMENT">#</a>ENVIRONMENT</dt>
<dd>

<p>Environment variables that the program cares about, normally presented as a list using <code>=over</code>, <code>=item</code>, and <code>=back</code>. For example:</p>

<pre><code class="plaintext">=over 6

=item HOME

Used to determine the user&#39;s home directory.  F&lt;.foorc&gt; in this
directory is read for configuration details, if it exists.

=back</code></pre>

<p>Since environment variables are normally in all uppercase, no additional special formatting is generally needed; they&#39;re glaring enough as it is.</p>

</dd>
<dt id="FILES"><a class="permalink" href="perlpodstyle.html#FILES">#</a>FILES</dt>
<dd>

<p>All files used by the program or function, normally presented as a list, and what it uses them for. File names should be enclosed in F&lt;&gt;. It&#39;s particularly important to document files that will be potentially modified.</p>

</dd>
<dt id="CAVEATS"><a class="permalink" href="perlpodstyle.html#CAVEATS">#</a>CAVEATS</dt>
<dd>

<p>Things to take special care with, sometimes called WARNINGS.</p>

</dd>
<dt id="BUGS"><a class="permalink" href="perlpodstyle.html#BUGS">#</a>BUGS</dt>
<dd>

<p>Things that are broken or just don&#39;t work quite right.</p>

</dd>
<dt id="RESTRICTIONS"><a class="permalink" href="perlpodstyle.html#RESTRICTIONS">#</a>RESTRICTIONS</dt>
<dd>

<p>Bugs you don&#39;t plan to fix. :-)</p>

</dd>
<dt id="NOTES"><a class="permalink" href="perlpodstyle.html#NOTES">#</a>NOTES</dt>
<dd>

<p>Miscellaneous commentary.</p>

</dd>
<dt id="AUTHOR"><a class="permalink" href="perlpodstyle.html#AUTHOR">#</a>AUTHOR</dt>
<dd>

<p>Who wrote it (use AUTHORS for multiple people). It&#39;s a good idea to include your current e-mail address (or some e-mail address to which bug reports should be sent) or some other contact information so that users have a way of contacting you. Remember that program documentation tends to roam the wild for far longer than you expect and pick a contact method that&#39;s likely to last.</p>

</dd>
<dt id="HISTORY"><a class="permalink" href="perlpodstyle.html#HISTORY">#</a>HISTORY</dt>
<dd>

<p>Programs derived from other sources sometimes have this. Some people keep a modification log here, but that usually gets long and is normally better maintained in a separate file.</p>

</dd>
<dt id="COPYRIGHT-AND-LICENSE"><a class="permalink" href="perlpodstyle.html#COPYRIGHT-AND-LICENSE">#</a><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</dt>
<dd>

<p>For copyright</p>

<pre><code class="plaintext">Copyright YEAR(s) YOUR NAME(s)</code></pre>

<p>(No, (C) is not needed. No, &quot;all rights reserved&quot; is not needed.)</p>

<p>For licensing the easiest way is to use the same licensing as Perl itself:</p>

<pre><code class="plaintext">This library is free software; you may redistribute it and/or
modify it under the same terms as Perl itself.</code></pre>

<p>This makes it easy for people to use your module with Perl. Note that this licensing example is neither an endorsement or a requirement, you are of course free to choose any licensing.</p>

</dd>
<dt id="SEE-ALSO"><a class="permalink" href="perlpodstyle.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</dt>
<dd>

<p>Other man pages to check out, like man(1), man(7), makewhatis(8), or catman(8). Normally a simple list of man pages separated by commas, or a paragraph giving the name of a reference work. Man page references, if they use the standard <code>name(section)</code> form, don&#39;t have to be enclosed in L&lt;&gt; (although it&#39;s recommended), but other things in this section probably should be when appropriate.</p>

<p>If the package has a mailing list, include a URL or subscription instructions here.</p>

<p>If the package has a web site, include a URL here.</p>

</dd>
</dl>

<p>Documentation of object-oriented libraries or modules may want to use CONSTRUCTORS and METHODS sections, or CLASS METHODS and INSTANCE METHODS sections, for detailed documentation of the parts of the library and save the DESCRIPTION section for an overview. Large modules with a function interface may want to use FUNCTIONS for similar reasons. Some people use OVERVIEW to summarize the description if it&#39;s quite long.</p>

<p>Section ordering varies, although NAME must always be the first section (you&#39;ll break some man page systems otherwise), and NAME, SYNOPSIS, DESCRIPTION, and OPTIONS generally always occur first and in that order if present. In general, SEE ALSO, AUTHOR, and similar material should be left for last. Some systems also move WARNINGS and NOTES to last. The order given above should be reasonable for most purposes.</p>

<p>Some systems use CONFORMING TO to note conformance to relevant standards and MT-LEVEL to note safeness for use in threaded programs or signal handlers. These headings are primarily useful when documenting parts of a C library.</p>

<p>Finally, as a general note, try not to use an excessive amount of markup. As documented here and in <a href="./Pod::Man.html">Pod::Man</a>, you can safely leave Perl variables, function names, man page references, and the like unadorned by markup and the POD translators will figure it out for you. This makes it much easier to later edit the documentation. Note that many existing translators will do the wrong thing with e-mail addresses when wrapped in L&lt;&gt;, so don&#39;t do that.</p>

<h1 id="AUTHOR1"><a class="permalink" href="perlpodstyle.html#AUTHOR1">#</a>AUTHOR</h1>

<p>Russ Allbery &lt;rra@cpan.org&gt;, with large portions of this documentation taken from the documentation of the original <b>pod2man</b> implementation by Larry Wall and Tom Christiansen.</p>

<h1 id="COPYRIGHT-AND-LICENSE1"><a class="permalink" href="perlpodstyle.html#COPYRIGHT-AND-LICENSE1">#</a><a id="COPYRIGHT1"></a>COPYRIGHT AND LICENSE</h1>

<p>Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2015, 2018 Russ Allbery &lt;rra@cpan.org&gt;</p>

<p>Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.</p>

<p>SPDX-License-Identifier: FSFAP</p>

<h1 id="SEE-ALSO1"><a class="permalink" href="perlpodstyle.html#SEE-ALSO1">#</a><a id="SEE1"></a>SEE ALSO</h1>

<p>For additional information that may be more accurate for your specific system, see either <a href="http://man.he.net/man5/man">man(5)</a> or <a href="http://man.he.net/man7/man">man(7)</a> depending on your system manual section numbering conventions.</p>

<p>This documentation is maintained as part of the podlators distribution. The current version is always available from its web site at <a href="https://www.eyrie.org/~eagle/software/podlators/">https://www.eyrie.org/~eagle/software/podlators/</a>.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
